<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>promise的链式调用一</title>
  </head>
  <body>
    <script>
      new Promise((resolve, reject) => {
        setTimeout(() => {
          resolve("hello vue");
        }, 1000);
      }).then(() => {
        console.log("Holle Vue");
        console.log("Holle Vue");
        console.log("Holle Vue");
        console.log("Holle Vue");
        return new Promise((resolve, reject) => {
          setTimeout(() => {
            resolve("hello js");
          }, 1000);
        }).then(() => {
          console.log("Hello Js");
          console.log("Hello Js");
          console.log("Hello Js");
          console.log("Hello Js");
          return new Promise((resolve, reject) => {
            setTimeout(() => {
              resolve("hello css");
            }, 1000);
          }).then(() => {
            console.log("Hello Css");
            console.log("Hello Css");
            console.log("Hello Css");
            console.log("Hello Css");
          });
        });
      });
    </script>
  </body>
</html>
